#include "reg52.h"
#include "intrins.h"
typedef unsigned int u16;
typedef unsigned char u8;
#define LED  P2  //宏定义
void delay(u16 n)
{
  while(n--);
}
void main()
{
	int i = 0; 
	LED = 0xFE;
	delay(50000);
    while(1)
	{
	    for(i=0;i<7;i++)
		{
		    LED =  _crol_(LED,1);
			delay(50000);
		}
		for(i=0;i<7;i++)
		{
		    LED =  _cror_(LED,1);
			delay(50000);
		}
	}
}